package com.xiaomiMall.mange.controller;

import com.xiaomiMall.mange.domain.Notable;
import com.xiaomiMall.mange.domain.Prod;
import com.xiaomiMall.mange.service.NotableService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


@RestController
@RequestMapping("/api")
public class NotableController {

    @Autowired
    private NotableService notableService;

    /**走马灯及下方图片地址 */
    @GetMapping("/notable/address")
    public List<Notable> selectNotableAddress()
    {
        return notableService.selectNotableAddress();
    }

    /**导航菜单图片地址 */
    @GetMapping("/notable/all")
    public List<Prod> selectAll()
    {
        return notableService.selectAll_1();
    }



}
